package com.tianhui.consignortwofei.mvp.model.enty;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author fgs
 * @date 2020/4/1
 * @description
 **/
public class GoodsInfo implements Parcelable {
    //委托人
    public String clientperson;
    public String clienttel;
    public String contractno;
    //取单人信息
    public String placetel;
    public String placeusername;
    public String placeprovince; //取单省
    public String placecity;//取单市
    public String placecounty;//取单区
    public String placedetails;//取单详细地址
    //装货人信息
    public String deliverprovince;
    public String delivercity;
    public String delivercounty;
    public String delivertel;
    public String deliverusername;
    public String deliverdetails;
    //收货人信息
    public String destinationprovince;
    public String destinationcity;
    public String destinationcounty;
    public String destinationdetails;
    public String destinationtel;
    public String destinationusername;

    //取单地 区码
    public String placecitycode;
    public String placeParentCode;
    //装货地 区码
    public String delivercitycode;
    public String deliverParentCode;
    //目的地 区码
    public String destinationcitycode;
    public String destinationParentCode;

    //货物类型
    public String goodstype;
    //货物名称
    public String goodsdescription;

    public String vehicletype;
    //单价
    public String baseprice;
    //数量
    public String quantity;
    //重量
    public String weight;
    //货物类型
    public String goodstypetext;
    //最高接受价
    public String bigprice;
    // 3抢单 4取消 3装车 7运输 9待收款 14完成(1好评 2中评 3差评)(2 已取消 4 取消确认中)
    //0:新增, 1:未抢单, 2:已取消, 3:待装货, 4:取消确认中, 5:确认装车, 6:确认收货, 7:运输中, 9:待收款, 10:作废, 11:终止, 12:已计算, 13:付款中, 14:已完成
    public int isstate;
    public String billno;
    //发单来源 1 pc 2 androidApp 3 iosApp 4 wechat
    public String billsource;
    //是否需要拆单 0不需要 1需要
    public String detachable;
    //拆单重量
    public String detachweight;
    //补助金
    public String grants;
    //货物单价
    public String goodsunitprice;

    //创建时间
    public String create_time;
    //发送距离
    public String senddistance;
    //货源备注
    public String remarks;

    //是否允许报价 0 不允许 1 允许
    public String quotation;
    public String estimatedmileage;
    //定额
    public String consumequota;
    //定率
    public String consumefixedrate;
    //发送对象
    public String sentto;
    //发送方式
    public String sendtype;
    public String draftno;
    //是否隐藏 0 不隐藏 1 隐藏
    public String ishide;
    //是否推送 0 不推送 1 推送
    public String ispush;
    //运输方式
    public String isdelegateshipment;
    public String vehiclelengthtype;
    //是否投保
    public String isinsure;
    public String Isinsure;
    //投保金额
    public String insureprice;

    //投保类型值
    public String schemeCode;
    public String orderno;

    //发单时间
    public String sendordertime;
    //有效时间
    public String ordertruetime;
    //装货截止时间
    public String lendtime;

    //交货最早时间
    public String unloadearltime;

    //预计卸车时间
    public String unloadearlhours;

    //运费总价
    public String totalprice;
    //指定人
    public String senttodetails;
    //议价电话
    public String facetel;
    //货权
    public String customerno;
    //业务单号
    public String businessno;
    //业务员账户id
    public String salesmanuserid;
    //调度员id
    public String dispatcheruserid;
    //所属区域 1 河北 2 天津
    public String belongarea;


    //发票
    //是否退款，1退 0不退
    public String  isrefund;
    //定金金额
    public String  depositamount;
    //是否开发票，1开 0不开
    public String   isinvoice;


//    /**
//     * erp 单据信息
//     */
//    @Column(columnDefinition = "VARCHAR(50) COMMENT '销货单号'")
//    private String code;
//    @Column(columnDefinition = "VARCHAR(50) COMMENT '货权'")
//    private String hq;
//    @Column(columnDefinition = "VARCHAR(50) COMMENT '品名'")
//    private String inventoryname;
//    @Column(columnDefinition = "VARCHAR(50) COMMENT '编号'")
//    private String inventorycode;
//    @Column(columnDefinition = "DATETIME COMMENT '单据时间'")
//    private Date voucherdate;
//    @Column(columnDefinition = "Double(12,3) COMMENT '重量 吨'")
//    private  Double quantity;
//    @Column(columnDefinition = "Double(12,3) COMMENT '吨运费'")
//    private Double dyf;
//    @Column(columnDefinition = "Double(12,3) COMMENT '吨装车费用'")
//    private Double dzcf;
//    @Column(columnDefinition = "Double(12,3) COMMENT '吨仓储费'")
//    private Double dccf;
//    @Column(columnDefinition = "Double(12,3) COMMENT '其他费用'")
//    private Double qtf;
//    @Column(columnDefinition = "VARCHAR(80) COMMENT '库房名称'")
//    private String housename;
//    @Column(columnDefinition = "VARCHAR(100) COMMENT '地址'")
//    private String address;
//    @Column(columnDefinition = "VARCHAR(300) COMMENT 'erp备注'")
//    private String memo;

    //找车单增加属性
    public String qtf;
    public String code;
    public String address;
    public String housename;
    public String voucherdate;
    public String memo;
    public String hq;
    public String dccf;
    public String dyf;
    public String inventorycode;
    public String dzcf;
    public String inventoryname;
//    private double quantity;

    public String deliverlon;//装货地
    public String deliverlat;
    public String destinationlon;//目的地
    public String destinationlat;
    public String status;
    public String verifymessage;


    //是否皓俊通 0 其他皓俊通 1 非皓俊通
    public String billtype;
    public String create_by;
    public String id;

    public String cd;//产地

    public String dispatcherusername;
    public String leftquantity;//剩余可发重量
    public int which;
    public String partnername;


    public String codeid;




    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.clientperson);
        dest.writeString(this.clienttel);
        dest.writeString(this.contractno);
        dest.writeString(this.placetel);
        dest.writeString(this.placeusername);
        dest.writeString(this.placeprovince);
        dest.writeString(this.placecity);
        dest.writeString(this.placecounty);
        dest.writeString(this.placedetails);
        dest.writeString(this.deliverprovince);
        dest.writeString(this.delivercity);
        dest.writeString(this.delivercounty);
        dest.writeString(this.delivertel);
        dest.writeString(this.deliverusername);
        dest.writeString(this.deliverdetails);
        dest.writeString(this.destinationprovince);
        dest.writeString(this.destinationcity);
        dest.writeString(this.destinationcounty);
        dest.writeString(this.destinationdetails);
        dest.writeString(this.destinationtel);
        dest.writeString(this.destinationusername);
        dest.writeString(this.placecitycode);
        dest.writeString(this.placeParentCode);
        dest.writeString(this.delivercitycode);
        dest.writeString(this.deliverParentCode);
        dest.writeString(this.destinationcitycode);
        dest.writeString(this.destinationParentCode);
        dest.writeString(this.goodstype);
        dest.writeString(this.goodsdescription);
        dest.writeString(this.vehicletype);
        dest.writeString(this.baseprice);
        dest.writeString(this.quantity);
        dest.writeString(this.weight);
        dest.writeString(this.goodstypetext);
        dest.writeString(this.bigprice);
        dest.writeInt(this.isstate);
        dest.writeString(this.billno);
        dest.writeString(this.billsource);
        dest.writeString(this.detachable);
        dest.writeString(this.detachweight);
        dest.writeString(this.grants);
        dest.writeString(this.goodsunitprice);
        dest.writeString(this.create_time);
        dest.writeString(this.senddistance);
        dest.writeString(this.remarks);
        dest.writeString(this.quotation);
        dest.writeString(this.estimatedmileage);
        dest.writeString(this.consumequota);
        dest.writeString(this.consumefixedrate);
        dest.writeString(this.sentto);
        dest.writeString(this.sendtype);
        dest.writeString(this.draftno);
        dest.writeString(this.ishide);
        dest.writeString(this.ispush);
        dest.writeString(this.isdelegateshipment);
        dest.writeString(this.vehiclelengthtype);
        dest.writeString(this.isinsure);
        dest.writeString(this.Isinsure);
        dest.writeString(this.insureprice);
        dest.writeString(this.schemeCode);
        dest.writeString(this.orderno);
        dest.writeString(this.sendordertime);
        dest.writeString(this.ordertruetime);
        dest.writeString(this.lendtime);
        dest.writeString(this.unloadearltime);
        dest.writeString(this.unloadearlhours);
        dest.writeString(this.totalprice);
        dest.writeString(this.senttodetails);
        dest.writeString(this.facetel);
        dest.writeString(this.customerno);
        dest.writeString(this.businessno);
        dest.writeString(this.salesmanuserid);
        dest.writeString(this.dispatcheruserid);
        dest.writeString(this.belongarea);

        dest.writeString(this.isrefund);
        dest.writeString(this.depositamount);
        dest.writeString(this.isinvoice);



        //找车单属性
        dest.writeString(this.qtf);
        dest.writeString(this.code);
        dest.writeString(this.address);
        dest.writeString(this.housename);
        dest.writeString(this.voucherdate);
        dest.writeString(this.memo);
        dest.writeString(this.hq);
        dest.writeString(this.dccf);
        dest.writeString(this.dyf);
        dest.writeString(this.inventorycode);
        dest.writeString(this.dzcf);
        dest.writeString(this.inventoryname);

        dest.writeString(this.deliverlon);
        dest.writeString(this.deliverlat);
        dest.writeString(this.destinationlon);
        dest.writeString(this.destinationlat);
        dest.writeString(this.status);
        dest.writeString(this.verifymessage);

        dest.writeString(this.billtype);
        dest.writeString(this.create_by);
        dest.writeString(this.id);

        dest.writeString(this.cd);
        dest.writeString(this.dispatcherusername);
        dest.writeString(this.leftquantity);
        dest.writeInt(this.which);
        dest.writeString(this.partnername);
        dest.writeString(this.codeid);


    }

    public GoodsInfo() {
    }

    protected GoodsInfo(Parcel in) {
        this.clientperson = in.readString();
        this.clienttel = in.readString();
        this.contractno = in.readString();
        this.placetel = in.readString();
        this.placeusername = in.readString();
        this.placeprovince = in.readString();
        this.placecity = in.readString();
        this.placecounty = in.readString();
        this.placedetails = in.readString();
        this.deliverprovince = in.readString();
        this.delivercity = in.readString();
        this.delivercounty = in.readString();
        this.delivertel = in.readString();
        this.deliverusername = in.readString();
        this.deliverdetails = in.readString();
        this.destinationprovince = in.readString();
        this.destinationcity = in.readString();
        this.destinationcounty = in.readString();
        this.destinationdetails = in.readString();
        this.destinationtel = in.readString();
        this.destinationusername = in.readString();
        this.placecitycode = in.readString();
        this.placeParentCode = in.readString();
        this.delivercitycode = in.readString();
        this.deliverParentCode = in.readString();
        this.destinationcitycode = in.readString();
        this.destinationParentCode = in.readString();
        this.goodstype = in.readString();
        this.goodsdescription = in.readString();
        this.vehicletype = in.readString();
        this.baseprice = in.readString();
        this.quantity = in.readString();
        this.weight = in.readString();
        this.goodstypetext = in.readString();
        this.bigprice = in.readString();
        this.isstate = in.readInt();
        this.billno = in.readString();
        this.billsource = in.readString();
        this.detachable = in.readString();
        this.detachweight = in.readString();
        this.grants = in.readString();
        this.goodsunitprice = in.readString();
        this.create_time = in.readString();
        this.senddistance = in.readString();
        this.remarks = in.readString();
        this.quotation = in.readString();
        this.estimatedmileage = in.readString();
        this.consumequota = in.readString();
        this.consumefixedrate = in.readString();
        this.sentto = in.readString();
        this.sendtype = in.readString();
        this.draftno = in.readString();
        this.ishide = in.readString();
        this.ispush = in.readString();
        this.isdelegateshipment = in.readString();
        this.vehiclelengthtype = in.readString();
        this.isinsure = in.readString();
        this.Isinsure = in.readString();
        this.insureprice = in.readString();
        this.schemeCode = in.readString();
        this.orderno = in.readString();
        this.sendordertime = in.readString();
        this.ordertruetime = in.readString();
        this.lendtime = in.readString();
        this.unloadearltime = in.readString();
        this.unloadearlhours = in.readString();
        this.totalprice = in.readString();
        this.senttodetails = in.readString();
        this.facetel = in.readString();
        this.customerno = in.readString();
        this.businessno = in.readString();
        this.salesmanuserid = in.readString();
        this.dispatcheruserid = in.readString();
        this.belongarea = in.readString();

        this.isrefund = in.readString();
        this.depositamount = in.readString();
        this.isinvoice = in.readString();


        //找车单属性
        this.qtf = in.readString();
        this.code = in.readString();
        this.address = in.readString();
        this.housename = in.readString();
        this.voucherdate = in.readString();
        this.memo = in.readString();
        this.hq = in.readString();
        this.dccf = in.readString();
        this.dyf = in.readString();
        this.inventorycode = in.readString();
        this.dzcf = in.readString();
        this.inventoryname = in.readString();

        this.deliverlon = in.readString();
        this.deliverlat = in.readString();
        this.destinationlon = in.readString();
        this.destinationlat = in.readString();
        this.status = in.readString();
        this.verifymessage = in.readString();

        this.billtype = in.readString();
        this.create_by = in.readString();

        this.id = in.readString();

        this.cd = in.readString();
        this.dispatcherusername = in.readString();
        this.leftquantity = in.readString();
        this.which = in.readInt();
        this.partnername = in.readString();
        this.codeid = in.readString();



    }

    public static final Creator<GoodsInfo> CREATOR = new Creator<GoodsInfo>() {
        @Override
        public GoodsInfo createFromParcel(Parcel source) {
            return new GoodsInfo(source);
        }

        @Override
        public GoodsInfo[] newArray(int size) {
            return new GoodsInfo[size];
        }
    };
}
